<template>
	<view>
    <Teachermy v-if="permission===0"></Teachermy>
		<Studentmy v-else></Studentmy>

		<tab-bar :tabBarList="tabBarList" />
	</view>
</template>

<script>
  import Teachermy from './@/components/my/Teachermy.vue'
  import Studentmy from './@/components/my/Studentmy.vue'
	import TabBar from '@/components/tabBar.vue';
	import {mapGetters,mapState} from 'vuex';

	export default {
		components: {
			TabBar,
      Teachermy,
      Studentmy
		},
		data() {
			return {

			} 
		},
		computed: {
			...mapGetters(['tabBarList']),
  ...mapState(['permission'])
		},
		methods: {

		}
	}
</script>

<style>

</style>
